import Vue from 'vue';
import {toDateString} from 'ele-admin/packages/util'
import {constantFormatHtml} from './common'

// 时间格式化
Vue.filter('toDateString', (time, format) => {
  return toDateString(time * 1000, format)
});

// 常量状态格式化
Vue.filter('constantFormatHtml', (status, type = '', color=false) => {
  return constantFormatHtml(status, type, color)
});

